Bubble sort and test implemented