Removed unessesary sort
Implemented find nearest