add some dp solution to uva problems