added distinct iterator and tests.
added element at category method and tests.  also added contains category method.