Text this: Temporal correlation detection using computational phase-change memory