Algorithms library for C