tf_idf methods

Hi! I'd like to work on this module. I've decided to start with something trivial: adding some tf_idf methods that were throwing "not implemented" errors and the corresponding tests.