adds operator<< for printing matrices