Fixed a problem in bfs.\nIt appears that stop has to be an int.

Signed-off-by: Marcin Zalewski <marcin.zalewski@gmail.com>