quick sort, time limit exceeded,must be merge sort