Adding suffix trees and few other solutions