Comparison within the algebraic approximation of configuration interaction and many-body perturbation theory for the Be ground state