fixed a bug in the 1st stage classifier feature extraction
first implementation of the second stage classifier and feature extractor