Implement for Algorithm in Section 4.3
Language: C
IDE: VS2013