Added map insertWith utlity function.