Update kdTree.java

Added rectangles to the insert function
Implemented public functions for nearest, range
Wrote private functions for recursion in nearest, range
Committed with copy and paste, horrible practice!