Interupted Bubble Sort solution