struct.merge function

Merging of structures into a new structure