A Procedure for Clique Detection Using the Group Matrix