Correlation energy contribution to nuclear masses