Distributed Averaging in Opinion Dynamics