Very simple matrix calculator