Large speed gain in knapscak by using integer keys in map