Significant update!!

==============================
updates:
+Add a time line which is used to separate states into different time/stage in the implementation of the dynamic programming algorithm;