Added mst algorithm this time