STL-like implementation of open addressing hash