added indexCopy
Merge pull request #23 from hycis/master

added indexCopy