parrellel bfs bottom up attempt 1