A simple matrix calculator