def sum_lower_sections(secs,start,level)
     i=start
     sum = 0
     while (i < secs.length && secs[i][:level] > level)
       sum += secs[i][:words]
       i += 1
     end
     [sum,i]
   end
def sum_lower_sections(secs,start,level)
     i=start
     sum = 0
     while (i < secs.length && secs[i][:level] > level)
       sum += secs[i][:words]
       i += 1
     end
     [sum,i]
   end
Helper for sum_sections