improved solution to finding a sum path in a btree