inital implementation for vector space model