Cube.py added

Added initial implementation of inner representation.