Replicability and stability in learning