ENH refactor psi from GridCRF and GraphCRF into CRF