Make trellis a single array.
Remove unneeded computation in calibration.
Update convergence testing to better match what crfsuite does.