add src folder and initilize the dynamic programming algorithm of segmentation