add improved comparison optimized bubble_sort_opt2 method