Added flatten binary tree