Implemented CPGLCube class. Added ensureInitialized function to CPGL
classes.