Cube: Move buffer creation to SetDimensions method
Cube: Error-checking on SetDimensions in factory