Add the implementation of Tuple (don't rely on C++11). Fix bugs to highly increase efficiency.