Flowmap

Calculate the flowmap of the current height field (see code for details). You can choose between the Single-Flow-Direction algorithm (which is reasonably fast) or the Multiple-Flow-Direction algorithm (which is pretty damn slow). On my machine (AMD K6-233) SFD takes about 2.5 seconds, while MFD takes around 30 minutes for a 400x400 height field.