work on minimal spannig tree