mst alg by cuda