Optimization And Adaptation Of Water Distribution Systems In Bathrooms