Small fixes
Add interface to use pairwise similarity matrix
Add min_sum_sim function
Small fixes
Add test procedure