dynStruct: automatic structure recovering and memory

dynStruct