Initial file to start integrating KdTree into the GP itself, rather than managing the data outside.