toWideMatrix function

Converts 3d array of CATA data to a wide 2d matrix format