https://medium.com/@monocosmo77/using-legendrian-submanifolds-in-machine-learning-geometry-research-part6-dbd4b8f90f01