fix SubString hash, &c.

- fix SubString hash/equality
- build temp array of all matches for sent n
- use only three rows of array