crowddetector: C++ implementation

Change-Id: I0f2c39087d73f7ffc53c7f57b5490ab28e6dd678