Adding code for LScore calculation - part of submodular score