Optimization of csolve for solving 2x2 cube positions.