@Override
    public int compareTo(Dimension d) {
        if (this.length * this.width >= d.length * d.width) {
            return -1;
        } else {
            return 1;
        }
    }
Sorts by base area(length X width)
src/com/interview/dynamic/BoxStacking.java