Just another kd-tree implementation.