first attempt at MST heuristic