Model Reduction for Dynamical Systems: Machine Learning and Memory