Changes Lcs functions to allow for different tables (like IndirectRowTable)
change from length() to size() to mirror vector