Create paginator.php

Class for pagination