Implemented group generator finding algorithm