Starting the dev of the NearestPoint Algorithm