A couple procedures to help calculate shortest distance between two lines (may remove this) and between a line and a point