Sorting - insertion and merge