Preparation for search updating

Rewrote clock mechanism based on C++11
Search now keeps track of the Interface for input and output