Add method to build GPU-friendly kd-tree structure from CPU kd-tree structure.