Cuda codes in the works
added functionality of cudafuncs
Merge pull request #1 from warpling/CUDAIfication

Merging in mis-named branch