Distributed Computing: A Locality-Sensitive Approach