Introduced LARGE_NUMBER = 1000 and fixed time increment.

The macro LARGE_NUMBER = 1000 has been defined to represent the large
time increment. In the time increment calculation, if all the dt values
are LARGE_NUMBER, the global dt is replaced as the minDt.