a(i, j, k) = max{a(i - 1, j, k), a(i -1, j - L, k - W) + 1}, if j - L < 0 or k -W < 0, use a(i - 1, j, k).
where L is the length, W is wide of samll rectangles.
a(i, j, k) = max{a(i - 1, j, k), a(i -1, j - L, k - W) + 1}, if j - L < 0 or k -W < 0, use a(i - 1, j, k).
where L is the length, W is wide of samll rectangles.