modify normalize method

tf and idf nomalize medhods is modified based on Harman and Sparck Jones methods, respectively.