simplify increase()
s/values/state
implement byte permutations as iterator
fix indentation