Groupdot

Hello,

This includes the tests for groupdot and groupdotgrad in sandbox/cuda/tests/test_groupdot.py.
This branch also has the codes that you had submitted as PR to main theano, with a couple of slight modifications.

P.S. I don't know why github automatically selected master to send PR to, although I had clicked PR when I was browsing your groupdot branch.