Added kdTree to speed up BuildCubeVerts.