Added iterator for segments and sections

segments and sections were already stored as std::vector<T>.
This change simply exposes the std::vector<T>::iterator functions.
Merge pull request #2 from vincom2/iterators

Added iterator for segments and sections