https://123dok.net/document/qvlr1jdy-topologically-constrained-template-estimation-via-morse-smale-complexes-controls-its-statistical-consistency.html