Fixed bugs in direct sum, implemented time stamp class in term of chrono (C++11 system clock)