public void remove(Comparable element) {
        SkipNode<Comparable> node = sentinel;
        boolean removed = false;
        int r = height;
        while(r >= 0){
            while(node.getNext()[r] != null && element.compareTo(node.getNext()[r].getElement()) < 0){
                node = node.getNext()[r];
            }
            if(node.getNext()[r] != null && element.compareTo(node.getNext()[r].getElement()) == 0){
                removed = true;
                node.getNext()[r] = node.getNext()[r].getNext()[r];
                if(node == sentinel && node.getNext()[r] == null){
                    height--;
                }
            }
            r--;
        }
        if(removed) elements--;
    }