merge arrays now does not modify original arrays