merge2 returns a dynamically allocated array of strings