Add CPU kd-tree construction.