Improve and document Aho-Corasick

Implemented match iteration with linked lists.