reverse the preProcessed cubes so that we have the largest cube in the beginning of the vector
$ preProcessedCubes = array_reverse ( $ preProcessedCubes ) ; $ totalCubes = count ( $ preProcessedCubes ) ;