An Efficient Multiresolution Clustering for Motif Discovery in Complex Networks