Dynamic programming..
Merge https://github.com/Sh0nZi/Dynamic-Programming