Distributed Operating System for Wireless Sensor Networks