wrote rect halving method
drafted kdtree insert
cleaned up kdtree insert