Implementation of Markov Modulated Poisson Process (MMPP) for Modeling Discrete Time Series