Similarity and Trust to Form Groups in Online Social Networks