Added a first class with time measurement and test in main.
Added thread creation.
Preparing reference beat addition