Fixes #229: applied math.abs after the modulo in the nextHash, added scalacheck
that the new indices are non negative and a test for the problematic case