public void put(int key,int value){
        int hash = getHashCode(key);
        if(elements[hash]==null){
            elements[hash] = new LinkedNode(key,value);
        }
        else{
            LinkedNode node = (LinkedNode)elements[hash];
            if(node.put(key,value)==false) {
                return;
            }
            elements[hash] = node;
        }
        counter++;
    }