Mergesort and Quicksort python implementations