Add several functions

1) reorganizePage and reorgranizeFile: use after a delete operation
2) updateIndexPage: update the page remaining space in the index page
3) getPageRemaining: compute the remaining space in on