first implementation of quadratic GPU.