max heap (MiB) : 48 strings : two of length 5000 full table cells : 25010001 ints = 100 MB two-row cells : 10002 ints = 40 KB two rows LCS length : 2500 full table LCS length : java.lang.OutOfMemoryError: Java heap space