prints matrix