Effciently computing the drainage network on massive terrains using external memory flooding process