Determine and manipulate the shape of arrays - KSI Data Research