finished binary tree traversals and merge arrays