Computer simulation of a lattice model of nematic liquid crystal