Reorder function definitions into class
Improved code style
Create suffix tree class