Thermal conductivity of crystals: A molecular-dynamics study of heat flow in a two-dimensional crystal