Generic data structures library in C