map divider dfs replaced with bfs, creating sequencial array from tree, nodes containing child ids