Cartesian Tree: plan