Helper methods in the AhoCorasick class

To add strings to a tree now you can use the method prepare(String), instead of
prepare(byte[] bytes, Object output).

To search strings now you have two options:

A progressive search, like in the previous version. The progressiveSearch call makes
the first search and the next method advances in the search, providing the successive results.
See example 1.

A complete search, in one call. The flags in the completeSearch method are used to
indicate
if overlapped results are allowed (true) or not (false). See example 2.
if the method should return only outputs formed with valid tokens (using the
StandardTokenizer provided by Lucene). See example 3.

Considering only tokens to create valid outputs

Optionally, you can indicate in the completeSearch methods that only tokens in the input text
should be considered to located substrings. In the basic use, if you add to your tree the string
al Ma and you search it in the input text Real Madrid, you will get one result. If you force
the algorithm to consider only tokens (see example 3) you will not get results, because neither
al nor Ma are tokens.