Implement basic non-adaptive kd-tree