Finish Deutch's Algorithm