Implemented enumeration algorithm.
Fixed bug printing certain answers on iterative approach.