Leveraging Optimal Transport via Projections on Subspaces for Machine Learning Applications