A library of atmospheric chemistry and physics algorithms