writing lin. eq. system solution with GSL