Implementation of the Token Bucket Algorithm in C/C++