Implementation of algorithm for finding maximal cliques in undirected graph