A Monte Carlo method for high dimensional integration