rename .comparand to .index
rename total() to shortestLength()
rename sort to similarity
remove unused functions and add secondary sorting based on nearest index