beginning algorithm for breadth-first-search

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>