Sparse Representations in Artificial and Biological Neural Networks