Adding a routine to merge two arrays and its unit tests.