Barnes–Hut simulation: Algorithm for performing an n-body simulation | Hacker News Reader