MatBlock function

Design matrix for blocks