https://medium.com/@monocosmo77/using-legendrian-submanifolds-in-machine-learning-geometry-research-part1-366ea359f680