Completed refactor to better complexity.
Removed examples dir. Look at tests for examples.
Added support for bfs search.