Private copy of cudamat (Windows support, interoperability with Theano and PyCUDA)