Complete Bubble sort coded from scratch.