update line, xline, ray tools

move Line2PEx to misc
implement similar functionality in Line2P