Weighting methods for Monte-Carlo calculation of polymer configurations