Bidirectional bubble sort as a test of array performance.

