added implementation of get_all_cliques together with helper method greater_neighbors