Steinhaus–Johnson–Trotter algorithm | Hacker News Reader