construct identity matrix