Discrete HMMs Using Deep Learning Libraries - Improving our Gradient Descent-Based HMM