added sorts: selection and merge