Added a segments module

Providing facilities for segments pairs