Tumor purity and heterogeneity estimation