Optimization of Balanced-Plug Cementing