Added implementation of feature vector.  Not tested.