Updated ranked distance k-NN class
Added another distance function related to similarity