A new memristor-based neural network inspired by the notion of associative memory