Andy: AC code for UVa#662 and the relevant test data.