small tweaks in the rollinghash.cpp approach, but looks like it is not the right approach