a simple matrix calculator in ios