addded mergesort and quicksort