Move file-scoped vote_reduction variable to function scope to avoid issues related with separate compilation of __device__ functions.

Reported by Evghenii on thrust-users mailing list.

Fixes #349
Merge pull request #351 from jaredhoberock/issue-349

Move file-scoped vote_reduction variable to function scope to avoid issu...