Array pagination utility class