Clean up mostSimilarCache implementation
Untested, but cleaner code. Now need to adapt sr metrics to it.
Finished cleaning up most similar cache.
Merge pull request #136 from shilad/better-mostSimilar-cache

Better most similar cache