Finished last algorithm, but have to find a way to track all the locations to delete and then rotate the table down (pages can't straddle other pages so I need to move some up until I hit a contiguous section.  Please let me know if you have any ideas)