optional cuda mode
Merge pull request #3 from soumith/master

optional cuda mode