add generate state feature

- add function generate_state
  generate_state takes 3 inputs and returns an array of states
  * markov_chain
  * state (optional)
  * count