using resistance random access memory [RRAM] elements