Forming Time-Stable Homogeneous Groups into Online Social Networks