lbfgs adapted to use cuBlas (CUDA)