Implementing TF/IDF in my search