Added class for merging and sorting two sorted arrays