hash based on pos-beg, which does better at 100-million elements, but worse at 1 million elements
add some timing tests to explore shorter sequences, iterated many times
inline cost fun methods
tweak timing tests
Merge branch 'master' into hash
hash looking good -- helps substantially at scale, and isn't impacting smaller scale