Fixed bug on pre-Kepler GPUs.  Also simplified code a little bit.
Enabled shuffle for double precision
Merge pull request #9 from peastman/master

Bug fixes to use of shuffle