KD tree notes and code.
2d tree module with constructor and insert.

WIP for nearest neighbor.