redid HTAP. Dijkstra's causes heap overflow