* @brief Helper method for range_comb method below * @param i The current node * @param l The leftmost node of the current node * @param r The rightmost node of the current node * @param tl The left endpoint of the range * @param tr The right endpoint of the range * @return The comb operation applied to all values between tl and tr */