merge + selection sort