add keyword rel_energy to lbfgs_cpp
small update to sort_eigs