hash: simplified interface to the rolling hashes and accelerated them

Both rolling hashes support now the Hashes method that computes all
hashes for a byte sequence. This function simplifies the the interface
of the rolling hashes and accelerates the computation of the rolling
hashes for the byte sequence.