added quicksort algorithm

tweaked mergesort algorithm formatting