Added longest_edge_in_set(); bugfix