Building Scalable and Robust Architecture for Ubiquitous Sensor Networks with the help of Design Patterns