Create merge sorted array