Memoization, experiments with optimization
Fix in XorShift
Small optimizations
Test fixes