Some simple distributed algorithms for sparse networks