hashmap cache sum of two numbers