Switching Behaviors of TiN/HfOx/Pt Based RRAM