Common Spatial Pattern Algorithm For Rubiks Cube