Implementation of <Introduction To Algorithms> third edition in C programming language