Change character class implementation

Use a simple AVL tree to look for a character in a class. This is easier
to invert.