dijkstra algorithm for creating Spanning Tree implemented.