new time map maintaining algorithm

It is changed to an unsigned short array. The initial size is 60000
shorts and will grow exponentially.