add algebra library