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