Changes the solveG method to be computed almost exclusively on the GPU