Multidim inplace permutations in constant(*) space | Hacker News Reader