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