Title: Cognitive Applications in Resistive Memories