CLRS code written in C