added copying constructor and static methods for generatin identity and random matrices