finished inference part, finished linear-CRF chapter