A New Randomized Algorithm for Community Detection in Large Networks