General Purpose Verification for Chain of Thought Prompting