Remove the sset memcpy and alloc when compare trees