Changed calculation of id ranges: get id ranges of local node, devided it by ranges in another groups.