Power of logrank test and Cox regression model in clinical trials with heterogeneous samples.