finish up queue
write dfs for tree