adding subroutine to compute grouped variance reduction
updating list of todo's