Update CubeArray.cpp

fixed Array from gas constructor