Updated mbbextractor and add a filterInvalidPoly.cpp