discrete Morse function