finished 1st version of kdtree visualiztion