Improve completers generation

Can avoid copying by passing the original array and start/end indices.