new faster kernels from cuda-convnet2, reorganized all cuda code into shared library
moved all GPU ops to Matrix class, minor edits