The source code and the compiled pdf of the master thesis for Peking University