lib/vsm: actually use tf.idf when matching documents