public int contains(int k){
        int index = -1;
        for (int i = 0; i < size; i++)
        {
            if(keyList[i]==k){
                index=i;
            }
        }
        return index;
    }