Kruskal's and Dijstras

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>