add flatten binary tree to lined list solution