Some experiments implementing a Matrix data type in Swift