ANSI C based algorithm library