An efficient search algorithm to find the elementary circuits of a graph