Patent ID: 8775453

Claim:
A method, comprising: receiving, in a first container, original data comprising one or more keys, the first container comprising a set container class of a standard template library and having a tree-based data structure comprising a plurality of nodes and a plurality of pointers; allocating a block of memory to a second container; copying the original data from the first container to the second container, the second container having an array-based data structure; deleting the original data, the plurality of nodes, and the plurality of pointers from the first container; receiving, in the first container after deleting the original data, additional data comprising one or more additional keys; determining whether a desired key is in the second container; determining whether the desired key is in the first container based on determining that the desired key is not in the second container; and returning the desired key based on determining that the desired key is in either the second container or the first container.