change histogram so that time-stamps are stored in a deque.
only time-stamps within the last gate seconds are stored in the deq.
similarly update the histrogram so it only shows counts during
the last gate seconds.
photon-correlation testing