peer.avg function

Computing peer average value