create cov matrix and scalable xtx xty

Signed-off-by: beccawilson <rebecca.c.wilson@gmail.com>