Implemented a plane-intersection kd-tree traversal