optimized the code for faster running
before modifying to add feature threshold count
after feature threshold count added
Merge branch 'master' into featurethreshold