pass keys to search and erase by reference (better performance for e.g. string keys)