Changed underlying matrix to NSMutableArray