Part of the way through HMM pipeline. Made classifier algorithm a parameter in a couple of the R functions, for modularity