Added algorithm::repeat