Corrected issue with find_edge_segments (fixed #34)