self taught learning exercise

400 iters runs in 2 hrs 10mins, 98.13% accuracy