adds nntrain_validation, modifies SAE example

adds nntrain_validation which plots training progress.

modifies SAE ex2  to use nntrain_validation.
Splits the dataset in SAE example into train-val-test