Build in code to count compares and swaps in bubble_sort_smart.