implemented feature extraction that stores all features to overcome the need for a search for each feature vector computation