Adding merge_arrays to be used by wong-sort.