Numerical renormalization group and its applications to time-dependent problems