added copy constructor to the Matrix object