Create bfs.js

Breadth first search, the graph is represented as an adjacency list.