remove leftover log message
Tarjan's algorithm and breadth-first search helper

Tarjan's not yet used, but will be useful to detect cycles in
Flowcharts.

Breadth-first search required to do a better job of working out the
distance from the startNode.

Also: made the layout to be used a parameter to the jQuery plugin.
fix wrong distance calculation