Perfect Simulation Of Processes With Long Memory: a 'Coupling Into And From The Past' Algorithm