Implemented a more efficient addition or independent subgroups