suffix tree debugged, implemented numOccurrences