C++ implementation of the Busy Beaver problem