A hierarchical Naïve Bayes Model for handling sample heterogeneity in classification problems: an application to tissue microarrays.