Cheap trick to speed up recursion in C++ | Hacker News Reader