Why does Heap's algorithm work? (2016) | Hacker News Reader