Refactor the tableau implementation.
Add a few utilities for tableaux.