First implementation of Bubble Sort.