added cluster_coefficient code