Writing Algorithm For Solving A 2x2