Graph theory - Objective C Breadth-first search example