Optimize replicate.
Add detail::index_sequence.
Optimize vector at: it was a serious bottleneck.