Made task independent on mac_address_type
Replaced mac_address_type with a range template parameter