Lattice QCD and dense quark matter