A Memristor Circuit Using Basic Elements with Memory Capability