Replace with Next greatest element