groupData function

Splitting a Matrix into a List of Matrices