adding dynamic programming notes