Implementation in c:\changsk\cs2310\2014finalzhao.zip