add several functions

1)reorgranizePage
2)scan
3)updateTableCounter: whenever there is a reorganization happens,
TABLE_COUNTER need to be updated
4)redistributeTableid: redistribute the table id and let the table id
to be serial and continuous
5)compareValue
6)getNextTuple