changed vector<bool> threshold to vector<unsigned_int>. fixed minor compilation bugs. this version compiles
param threshold is unsigned in _param.h file