Generic function to map values from one set to another using a user-supplied lookup table
Useful links