In addSeqScan in HeapFile, search the whole table once to init TupleNumMap in case dirty init of file; add boolean argument in swapReturnedTuple to switch between mode