Add get_or_default method to HashMap.

Works like get except it doesn't fail if the key is not present.
Instead it returns the passed default element.