Add header file <math.h>.
Maximum path sum 1 & 2 (same).
Add reference.