added documentation for algebra.h