implement methods for the LatentCrfAligner and modify implementation of LatentCrfModel and LogLinearParams to support LatentCrfAligner.