Increasing the efficiency of Bubble Sort.

As soon the sorting is completing, it breaks the remaining iterations.