printIndexEntriesInAPage function change

add reference “const Attribute &attribute”