def METHOD_NAME(self, child):
    if len(self.history) < 100:
        self.history.append(child)
    else:
        for i, p in enumerate(self.history):
            if child.accuracy > p.accuracy:
                self.history[i] = child
                break