Update largest rectangle of histogram