time wheel algorithm realization algorithm. used template function pointer split logic relationship. sample algorithm.