Morse Theory: Smooth And Discrete