Modified Matrix.clone() so it returns a deep copy.