Implementation of the vectorial model.