Added the breadth-first search solution