Floods displace 40,000 residents in Indonesia