K-D tree, polar coordinate system