add hashcode and equals. transaction output is identical in sets if its
hash and index is same.