Temporal Inference with Finite Factored Sets