Finish gini computation bfs kernel