a simple tf-idf matrix builder. Main purpose is php training