add figures to the document, finish most of the algorithm, send to Prof. Huang.