Quantum speedup in solving the maximal-clique problem