Created several nearest neighbour methods.