Gravar-mail: Group testing in heterogeneous populations by using halving algorithms