A fast and distributed algorithm for mining frequent patterns in congested networks