Fixed a bug in the GPU gather function of the BFS stepwise implementation.