adds quick sort, merge sort doesnt work