Implementation of HMMs at Scale