Final version of "Prim MST alghoritm"