This program implemented some classic recursive algorithm.