Added GPU code to master branch