Using template at some binary tree problems and adding problem statement