Change bfs to traverse, added MRCA function
resolved conflicts