Anamnesic Neural Differential Equations with Orthogonal Polynomial Projections