Added some benchmarks for demonstration, plus tracking how many nodes are visited and pretty printing.