Memristors power quick-learning neural network