SMS: Algebraic Theory of Generalized Inverses