https://9dok.net/document/y8g36n40-discrete-morse-theory-for-cellular-resolutions.html