multiMap() function - integer linear interpolation

updated the playground to have a reference