Implement shortest path for directed weighted graph
Implement key indexed counting