Algorithm | the cube