Program to implement merge sort on an array