add trainer for mnist dataset
Merge branch 'master' of https://github.com/greeness/deep-learning