DCOSS: Distributed Computing in Sensor Systems