Applications of persistent cohomology to dimensionality reduction and classification problems