bug fixed

1) now reorgranizeFile can traverse all the previous page to get the
page which can hold an insertion
2) convert all the argument of fmod to double