Added creation of Matrix based on data and col definition from scope.