Adaptive Method for Solving the Time-Dependent Schrdinger Equation