private void findMin() {
        int m = 0;
        for (int i = 1; i < array.length; ++i) {
            if (array[i].getValue().compareTo(array[m].getValue()) < 0) {
                m = i;
            }
        }
        min = array[m];
    }