einsum and mst