Added new paginator utility.
Updated the paginator, and added unit tests.