Distributed processing over adaptive networks