make the Tokenizer and Optimizer static classes.

Since only one instance was ever being made anyways.