Nonlinear and Dynamic Average Consensus Algorithms: Distributed Averaging Methods in Wireless Sensor Networks