Deformation and alignment of a chain molecule in solution subjected to a shear flow: a molecular dynamics simulation