Add algorith to find the intersection between segments