http://www.personal.psu.edu/dxh40/MorseHomology.html
