added merge Arrays A and B