utility to find intersection of two 3d lines