added suffix tree and msd