Add Bread-First-Search algorithm