add accumulator for bfs; closes #11

- non-backwards-compatible change: bfs fns take an extra acc arg
- add cc/bfs