Fixed bug in BFS and started running performance tests.