NUMERICAL-CALCULATION OF CORRELATION-FUNCTIONS BY BOUNDARY-CONDITION AVERAGING - TEST ON THE ONE-DIMENSIONAL HUBBARD-MODEL