Initial integration of magma for GPU acceleration. Added to updateBeta(), now need to add to updateTheta().