[core] few mods on computing the SSE. Revert the previously used algorithm