Bubble keep tight algorithm has been implemented.