Refactor bubble sort with standard random numbers driver tests.