outlined merge sort with errors