Replace RegisterData with constructor.
The framework for testing algorithm in main.cc is done. Change the