Simulation of 'The Bear and Honeybees problem' written in C++