Towards replicated algorithms