intersection vs primal code complete

I fixed some minor bugs with the partitioning code and rewrote a part of the intersection_form code so that it's simpler (and more efficient). We can now run comparisons (and should probably talk about what comparisons we want to run)!