A class for shifting calculations to the GPU