Attempted Get Nearest Neighbour Algorithm