[algorithm] Added variant of 'map_values' function taking a collection of keys for which we want to get their values from the map