Update PartsBasedDetector.cpp
Merge pull request #4 from dmcamp/master

Added nonMaxSuppression to detect method