fixed suffix rank bug. use hashCode instead of the character