SMV #102: added smvRank function.