Intersection algorithm in place

Needs testing.  It might not be working right now.