PEDS: A Parallel Error Detection Scheme for TCAM Devices