add function printIndexEntriesInAPage

This is a utility method that will be mainly used for
debugging/testing. This method should print all entries in a primary
page and its associated overflow pages indicated by primaryPageNumber.