modified simulator to use sparse transition, duration and obs. matrices.