Algorithm for finding out maximal cliques