xegaAnyTimeResult function

Writes xega results after each iteration to a rds file.