added a bubble sort algorithm