Dictionary Learning by Dynamical Neural Networks