adding Yuval's bfs solution
Merge branch 'master' of github.com:AlexNisnevich/untrusted