Adds Territories class.
Merge pull request #72 from cauchymop/territories2

Adds Territories class.