mst and priority queue added