flip_ddc function

reverse direction of depth-depth curve