minor change
adapted bfs to return the "breadth first tree"
added new test and input