code: def RegisterValue(self, value):
      
      if self.bins:
        for b in self.bins:
          if b.range_max_value > value:
            b.num += 1
            return
  
        self.bins[-1].num += 1
docs: Puts a given value into an appropriate bin.