added iterator pair template class