An Algorithm to Generate the Basis of Solutions to Homogeneous Linear Diophantine Equations