Finish BFS
Added base GUI impl.
Fix method definition to use it in java.