added minimum depth of binary tree and flatten binary tree to linked list