Suffix Tree Function updated