added method for creating an identity matrix