first steps in implementing suffix tree
constructing and printing suffix tree in O(n**2)