Temporal histogram implementation