Improve annSourceMnist to be able to shuffle training dataset for next epochs.