move normalize_distribution function to computing_degree_distribution