First Failure
Second try with stacks

More tests pass, duplicates still a big problem