Working on mr kruskels algorithm