merge sort working for even elements in array