fix stackoverflow on large graph (Graph.toAsciiLines is now a procedural algo)

I also switched to JUnit which was easier for me to debug within IDEA.