distirbuted the data by keyBy clause and cached in memory
data structures to capture variable matrix and resultant array, wip another function to implement xtxx and xty matrix