Add rope optimization step for stackless kd-tree construction.