Prevalence of non-monotonicity in learning curves