Bubble sort implemented using the strategy pattern.