Efficient electronic integrals and their generalized derivatives for object oriented implementations of electronic structure cal