Update dp solution