Incorporation of C code for loops and coordinate gradient descent.