refactord inference and loss-augmented inference in GridCRF
ENH refactored inference in DirectionalGridCRF
ENH remove LatentCRF, fix LatentGridCRF, i.e. use new get_unary_potentials/get_pairwise_potentials interface