Optimizing a breadth-first search | Dark Hacker News