Modified ptreap