dynStruct: automatic structure recovering and memory