Added basic pagination to InMemoryCollection page function