add test case of LCS and LD to main.m