Restructuring src/dest arrays to use a single 2-dimensional structure.