A method to add a unique id to each address in an array