adding imagine-nn modules, which port some useful CUDA kernels from Caffe