BubbleSortThread now inherits from SortThread