Homology of symplectic and orthogonal algebras