Measure time for shingles generation.
Resize hashes array properly.
Compile external tools with optimizations.