Graph implementation, Breadth-First Search, some fixes to DynamicArray/Queues