initializing the poses using bfs
add getPairwise transformation to get the actual transformation