Completed the code for integerbubblesort