Routine to find distance from point to line.