Removed old code that was basically useless, as I stopped used iterative depth-first searches.
Added Tests.