This return isn't thread safe. It should be changed to 
```
const uint32_t* getBinToDet() const {return binToDet;}
```