Test runs

Problems 1-3, 5-8 are ok. Number 7 is horribly slow (~30s on i5), to be
optimized.