Added distance_between_point_and_edge(); bugfix