C++ code for Monte Carlo simulations of patchy spherocylinders