fix bloom filter underestimation of common friends that might give negative distance values
added test for jaccard similarity and distance
simple test for semi-metric triangles