The first optimization in program 3.

The merge function just is called if a[m]>a[m+1]