Monte-carlo study of motions for a flexible macromolecule in the presence of fixed obstacles