Implement ucl_array_merge to merge two arrays