Accelerated estimation and inference for heritability of fMRI data