Solve linear equations with integer coefficients (#281)