Assignment 5 Quicksort and Mergesort Solution