Statistics for RRAM in High-speed TCAM Design and Its Applications with New Switching Materials