class LayerHash implements Layerable<KeyType> {

    public synchronized void addToTop(KeyType key, ValueType value) {
        if(hash.containsKey(key)) {
            hash.put(key, value);
        } else {
            hash.put(key, value);
            zlist.addToTop(key);
        }
    }

}