Learning Parities with Neural Networks