Speded up the subgroup finding algorithm