Added resize()
MNIST raw data
Refactored to use template data in matrix
Output: changed space dumping