Added previous implementation (4 connect only)
redid HTAP. Dijkstra's causes heap overflow