<put algortithm description here>
processing.runalg('saga:localminimaandmaxima', grid, minima, maxima)