Simple GPU Algorithm