implemented ?; added test case comparing Python's re module and Thompson's algorithm over some pathological inputs