Meshing algorithm in C | Hacker News Reader