shad/algo2: developing suffix tree