added heuristic to edge struct