Began to extend DP solution for big numbers