Implemented reorganizePage - it needs to be tested using deleteRecord, and it's probably wrong