Cooperative Strategies for Near-Optimal Computation in Wireless Networks