Fixed breadth first search
Refactored this search
added main bin file