POSIT algorithm