'Records given value.'

def Record(self, value):

    self.sum += value
    self.count += 1
    pos = (bisect.bisect(self.bins, value) - 1)
    if (pos < 0):
        pos = 0
    elif (pos == len(self.bins)):
        pos = (len(self.bins) - 1)
    self.heights[pos] += 1
