added kdtree solution