some binary tree problems solution of stanford