added mergesort and quicksort