Made segment<T> a heir of pair<T,T>
Improved projection_iterator