Implemented copy_index and move_index