Build the crazy super improvment to Temporal histogram

- will imporve the code in the weekend