threads and tested bubble sort