The Dual Dynamic Programming for Studying Bolza Control Problem