update Maximum_Gap