processDataCube function

Process a multi-way array of count data.