07_codechef_bintree refactored a little bit