Performance improvements

I'm working on a Rubik's Cube solver and code needed to be optimized.
Converting strings to lists and vice versa was unneccessary (RCE class).