Main Search Dp Homemade Compilation