A reliable and fault tolerant computing model for wireless sensor networks