Added KNearestNeighbourNode, moved a few things round.