Optimize sort_and_merge futher

If vector's size is 1, no process is required.