Update largest rectangle of histogram

another version, but still fail to large tests