Add reduce method to Map