Create bfs.java