Replace With next greatest element