3D HW_2 and BFS