Find perpendicular distance from a point to a line (#385)