Implements breadth first search.
Removes special case for root.
Merge pull request #9 from kurtwheeler/master

[Feature] Implements breadth first search.