Adds matrix types