add dp programs in POJ and some test cases