Hybrid Input Output Algorithm For Rubiks Cube