C++ Source Code for CAVIAR Annotation