Method for Nested Categorization using Factorization