Adding Dynamic Programming medium problems