Jaccard and Adamic-Adar Similarity

and some utility classes for i/o.