first version of gpgpu
implemented iteration