A computer program for Presburger's algorithm