finished nearest and k-nearest neighbours
removing debug stuff again