implemented Degree heuristic
implemented Degree heuristic