Create DP1.m

To make a better choice by the dynamic programming for the minNum for a matrics.