Fixed MNIST stuff

I have ordered files concerning tests based on MNIST dataset,  moved to separate dir with additional helper scripts. Now should be easier for next person.

I have fixed some problems with memory allocation in core DeSTIN.