Changed return assignment for cuda fitter from matrix pointer to double pointer