Fix lines too short issue in find_edge_segments (fix #41)