A generic implementation of Approximate Bayesian Computation methods