update mergesort and bubblesort