modified the bubble sort, the basic bubble sort works find, however, there exists a problem in the opt_bubble_sort function