compares selection and merge sort