testing UVa Problem Solver