Resistive switching memory using biomaterials