changed constructor for ExtendedLCS