Combine multi-dimensional arrays