Deep neural network implemented with gnumpy/cudamat