First addition of linear chain crfs

TODO: Add tests
Working state of linear chain crfs
Merge branch 'linear-chain-crf' into develop