fixed quicksort! work on mergesort implementation