Bubble sort : removing reduntant swaps