Another small speedup
30% speed up on html syntax highlighting by using a C implementation for the Tag and State classes