Proper Dynamic Programming approach is implemented. dynamicLCS is the
method.