this computes s-s s-o o-o join freshness values

first we build 2 hashmaps with its key is being the subject(object) variable and its value is list of triple patterns that have that subject(object) as variable. 
then for each type of join we either iterate just over one of above hashmaps( for s-s or o-o) or iterate over both of then (for s-o join)