typo
algorithm for nearest point