Added code for suffix tree