mergeCommon to find out the mixture from two sorted arrays