The bfs algorithm implemented using hpx API. Some bugs may incur in these code.