added code to find intersection points in the alignment matrix