Added unfinished quicksort and fixed stack overflow in mergesort