gn (graphs and networks) algorithms / data structures templates for JavaScript