Change global buffer to local
Merge pull request #2918 from vbystricky:oclopt_reduce2