Fixed wrong kd-tree construction. Maybe still something wrong as the OpenCL intersection test still has some gaps.