completed bubblesort and mergesort assignments