Fast Supervised Dimensionality Reduction Algorithm with Applications to Document Categorization & Retrieval