Use unordered_map in inp function of local_storage instead of vector

The new key_manager uses unordered_map for id2key instead of vector.
We need to use unordered_map in inp method as the same way to calculate scores for all labels.
Write test for inp method after clear
Fix inp method for local_storage_mixutre same as local_storage