Improved efficient of Bubble Sort