identity matrix in ruby