invertPageOrder implemented

This implementation covers issue #64 and passes tests created by michael-misshore (which have been pulled from his repository).