Changed normalising factor in tf-idf calculating class