First implementations of hanoi and string permutations