Implemented breadth first search. Queue and Stack remove all contained objects on dealloc.