Added StateTransitionsArray and ObservationTransitionsArray, and made the necessary modifications to enable them to be used.