The water flow problem solved with the quick Union find algorithm