bubbleSort from Sergio