Adds operator<< functions to Matrix class