Update across_matrix_two_times.cpp

DP solutions:
http://www.cnblogs.com/v-July-v/p/3320870.html