Moved the implementation of for Version 9 into a file with 'V9' suffix.
More robust implementation of the generation function -- handling the cases when the last N-gram is unknown to the model. Using Version 10 Dispatch rules handling.