binary tree backtrace recursion algorithm implementation path sum 2