use HashMap for creating feature vector