Implemented the vector space model