changed WITHTIES to UNIQUE.  Fixed bug in zslGetRank.