Hello,
Finally I have fixed the problem with the Cube class.
Here is the file with the modifications. I add a TODO tag to find them
quickly.
I've tested it for 2x2x2 cube and works fine, if someone test it with
bigger cubes please leave feadback in this list.
Regards.