GAAA-TK: a generic AAA toolkit library