recognize identity matrix sulution