Categorical model of temporal sequencing in neural memory