Memorization with neural networks