A rubik's cube generator and solver for matlab.