dgels_ and dgesv_ solve routine