math.combinatorics: faster by using hints for the array common case.
rosetta-code.josephus-problem: change to use josephus-2 if k=2.