A C language toolbox for integrating optimization algorithms