Memristor model for simulating large circuits for massively-parallel analog computing