a very simple regex engine based on ε-NFA, just for fun :)