Added immutable matrices. Data classes are WIP.