Complete bubbleSort.js