Reindent code.
update bidirectional BFS.