Quick sort and merge sort on arries