estimate heritability with or without covariates