Extremely basic matrix implementation