Refactored cobordism.py to avoid using duals (constructing everything
from scratch in both LEFT and RIGHT cases).