Framework for Generalized Subspace Pattern Mining