optimized indexCopy
Merge pull request #20 from hycis/master

optimized indexCopy