Add a #define, TIMESHIFT, for lg(TIMESCALE). TIMESCALE must now be a power of two.